public class GxClientTransactionModel
The model describes an transaction operation that can be passed to the grid to add / remove & update that data at once.
Modifier and Type | Field and Description |
---|---|
HashSet | Add! An array of rows to add |
BBjNumber | AddIndex! Index for rows to add |
HashSet | Remove! An array of row to remove |
HashSet | Update! An array of rows to update |
BBjGridExWidget | Widget! BBjGridExWidget instance |
Constructor and Description |
---|
GxClientTransactionModel(BBjGridExWidget widget!) Construct new transaction model |
public HashSet Add!
An array of rows to add
public BBjNumber AddIndex!
Index for rows to add
`GxClientTransactionModel.addIndex` is deprecated. If you want precision control of adding data, use `BBjGridExWidget.updateData` instead
public HashSet Remove!
An array of row to remove
public HashSet Update!
An array of rows to update
public BBjGridExWidget Widget!
BBjGridExWidget instance
public GxClientTransactionModel(BBjGridExWidget widget!)
Construct new transaction model
BBjGridExWidget
widget! The widget instancepublic void add(DataRow row!)
Add new row
DataRow
row! A new data row to addpublic JsonObject execute()
Execute the transaction on the widget model (ResultSet)
public void remove(DataRow row!)
Add new row
DataRow
row! An already existing row to removepublic void update(DataRow row!)
Update a row
DataRow
row! An already existing row to update